/************************************************
 * Author       :   XXY
 * Blog         :   https://www.cnblogs.com/jzyl
 * Email        :   1047185209@QQ.com
 * FileName     :   LogUtillity.cs
 * CreateData   :   2023/4/28 10:34:06
 * UnityVersion :   2020.3.33f1c2
 * Description  :   日志打印管理(编辑器打印都可通过此方法,方便管理和屏蔽)
************************************************/

using Sirenix.Utilities;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class LogUtillity
{
    public static void Log(object msg)
    {
        ConsoleFormat(msg, "white");
    }
    public static void Warning(object msg)
    {
        ConsoleFormat(msg, "yellow");
    }
    public static void Error(object msg)
    {
        Debug.LogError(msg);
    }

    private static void ConsoleFormat(object msg, string color)
    {
        Debug.Log($"<color={color}>{msg}</color>");
    }
}

